package com.taxi.apipassenger.remote;

import com.taxi.common.dto.ResponseResult;
import com.taxi.common.request.ForecastPriceDTO;
import com.taxi.common.response.ForecastPriceResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @Author ruomengjiang
 * @Date 2022/7/11
 * @Description : online-taxi
 * @Version: 1.0
 */
@FeignClient("service-price")
public interface ServicePriceClient {

    @RequestMapping(method = RequestMethod.POST, value = "/forecast-price")
    public ResponseResult<ForecastPriceResponse> forecast(@RequestBody ForecastPriceDTO forecastPriceDTO);
}
